package states.gameplay.animations;

import org.newdawn.slick.Graphics;

import states.gameplay.Position;

public abstract class AttackAnimation {
	
	protected Position startPos;
	protected Position endPos;
	private int radiusOfEffect;
	
	private boolean isOver;
		
	public AttackAnimation(Position startPos, Position endPos, int raidus){
		this.startPos = startPos;
		this.endPos = endPos;
		
		setRadiusOfEffect(raidus);
		
		isOver = false;
	}
	
	public boolean isOver() {
		return isOver;
	}

	public void setOver(boolean isOver) {
		this.isOver = isOver;
	}

	public Position getStartPos() {
		return startPos;
	}
	
	public Position getEndPos() {
		return endPos;
	}
	
	public abstract void update(int delta);
	
	public abstract void render(Graphics g);

	public int getRadiusOfEffect() {
		return radiusOfEffect;
	}

	public void setRadiusOfEffect(int radiusOfEffect) {
		this.radiusOfEffect = radiusOfEffect;
	}
}
